home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95c.txt
/
000061_icon-group-sender _Sat Oct 21 23:17:12 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1996-01-03
|
5KB
Received: by cheltenham.cs.arizona.edu; Mon, 23 Oct 1995 00:17:17 MST
To: icon-group@cs.arizona.edu
Subject: Re: Perl vs Icon
Message-Id: <814317432@mse>
Date: Sat, 21 Oct 95 23:17:12 UTC
From: whm@mse.com (William H. Mitchell)
Errors-To: icon-group-errors@cs.arizona.edu
From: "Chris D. Tenaglia" <cdt@post.its.mcw.edu>
Subject: Perl vs Icon
To: icon-group@cs.arizona.edu
Real world problem here. Perl vs Icon. On a given unix system
I've been using Icon quite successfully for:
o Scripting
o Small programs and utilities
o Data conversions
Mostly in the role of system admin. However, some new backup
sys admins have been brought on and their recommendation is
to scrap this Icon stuff and standardize on Perl, because
[of five bad reasons].
And so I find myself on the defensive. I don't want to start
flaming and look like a raving fanatic in mgt eyes, but has
anyone been through such a coup?
You say you've got a lot of existing Icon code that does real work. If the
two new guys want to throw that code out and rewrite it in perl, they're
more interested in writing perl than getting work done.
As both languages come out of the box I'd have to agree perl is the more
ready to use for system administration because of the broad system
interface. But, I think Icon has a much more solid core language. It's
easy to add a routine to do this or do that, but if the core language is
weak, that's hard to overcome.
I am already aware of one answer, "Learn Perl, it's a marketable trade."
No sweat, it probably can be mastered in a weekend with a good manual...
Only if you've got a strong stomach! :-)
perl was becoming popular at about the time the time I was starting to move
away from system adminstration work. I'd been using Icon for SA programming,
but since perl was spoken of highly by other SA's I got it and printed up the
man page, the only documentation at the time. I tried to read it, but finally
decided to wait for a book. Well, "Programming perl" came out and I bought
it. I started reading it and gave up in disgust. I'd never been bombarded by
such an uncohesive set of rules for a language. The book sat on the shelf for
a while, perl continued to gain in popularity, and I continued to use Icon.
I decided to give perl another chance and started reading the book again.
I again quit in disgust. Shortly after that I moved away from all system
administration responsibilities and I stopped worrying about perl.
Last Fall, I attended the Usenix Very High Level Language conference in Santa
Fe. The first day of conference featured (I thought) tutorials on various
languages, one of which was perl and was being given by Larry Wall. I said,
Ok, here's another chance to learn about perl. If memory serves, Mr. Wall
devoted the tutorial to new features in version 5 of perl. Oh well.
Recently, after I gave a presentation on Icon, a person in the audience
approached me and said I should take a look at perl. I told them my sad story
about trying to learn perl and they responded by loaning me a copy of
"Learning perl", by Schwartz. I found it to be much more readable than
"Programming perl" and I made it through the whole book. Instead of
being disgusted by perl I'm now simply unimpressed.
But back to your problem, I'd simply argue for coexistence. If the perl twins
can best get their work done with perl, let them. If you can do your work best
with Icon, you should be able to use it. The best observation I've heard
regarding programmng languages is this: The hobbyist can afford to religiously
stick with one language for everything, but the professional programmer uses
whatever is necessary to best get the job done. (Roughly paraphrased from
Grady Booch.)
If these guys are open minded, offer a deal: you read a perl book and they
read the Icon book. Maybe you'll expand their horizons and maybe in learning
more about perl you'll be able to better argue for Icon. In learning perl,
I discovered some interesting idioms that I'll express in Icon with procedures,
but I found no motivation to put peril in my toolbox.
/------------------------------\ /----------------\
/ William H. Mitchell \ / 7120 E. Kiva Way \
/ Mitchell Software Engineering \o----/ Tucson, AZ, 85715 \
\ Consulting/Development/Training / \ 520-577-6431 /
\ OO Methods/C++/Icon/UNIX / \ whm@mse.com /
\------------------------------/ \----------------/